﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="warehouseGoodsInventory.aspx.cs" Inherits="WebSite.admin.warehouse.warehouseGoodsInventory" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>福利点点通 </title>
      <link href="../css/skin.css" rel="stylesheet" type="text/css" />
         <script src="../js/common.js" type="text/javascript"></script>
   
</head>
<body>
    <form id="form1" runat="server">
    <div class="maincontent">
              
              <%= HeaderHtml %>      
      <ext:PageManager ID="PageManager1" runat="server" />  
        <ext:form ID="extForm1" runat="server" BodyPadding="5px" Height="100px" 
            EnableBackgroundColor="true" Title="" ShowHeader="false" >
            <Rows>
                 <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                  
                       <ext:textbox ID="txtTheme"   Required="true" ShowRedStar="True"  Label="盘点主题" runat="server" Text=""></ext:textbox>
                     <ext:dropdownlist ID="ddlWarehouse" runat="server" Label="仓库列表" 
                        Required="true" ShowRedStar="True"    AutoPostBack="true"
                        OnSelectedIndexChanged="ddlWarehouse_SelectedIndexChanged">
                    </ext:dropdownlist>
                
                </Items>
            </ext:FormRow>
               <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                  
                  <ext:DatePicker ID="dtpStartTime" runat="server" Label="盘点时间" FormItemClass="yyyy-MM-dd hh:mm:ss"  Width="200px"></ext:DatePicker>
                
                
                </Items>
            </ext:FormRow>
             
        
               <ext:FormRow ColumnWidths="100%">
                <Items>
                    <ext:textbox ID="txtRemark"   Required="true" ShowRedStar="True"  Label="商品调拨备注" runat="server" Text=""></ext:textbox>
               
                </Items>

                  </ext:FormRow>
           
            </Rows>
        </ext:form>


                <ext:Grid ID="Grid1" Title="盘点明细" PageSize="50" ShowBorder="false"  CssClass="x-form-item" Height="350px"   AllowPaging="false" SortColumn="id" SortDirection="ASC"     
                         ShowHeader="False" runat="server" EnableCheckBoxSelect="True"   AllowSorting="true"    IsDatabasePaging="false" 
                        DataKeyNames="id,goodsId,modelTypeId" OnSort="Grid1_Sort" EnableRowNumber="True">

        <Columns>
               <ext:BoundField Width="100px" ColumnID="id" SortField="id" DataField="id" DataFormatString="{0}"
                HeaderText="明细编号" />
            <ext:BoundField Width="100px" ColumnID="goodsCode" SortField="goodsCode" DataField="goodsCode" DataFormatString="{0}"
                HeaderText="商品编号" />
                <ext:BoundField Width="100px" ColumnID="goodsBatchNo" SortField="goodsBatchNo" DataField="goodsBatchNo" DataFormatString="{0}"
                HeaderText="采购单号" />
                  <ext:BoundField Width="200px" ColumnID="goodsName" SortField="goodsName" DataField="goodsName" DataFormatString="{0}"
                HeaderText="商品名称" />
                 <ext:BoundField Width="200px" ColumnID="modelTypeName" SortField="modelTypeName" DataField="modelTypeName" DataFormatString="{0}"
                HeaderText="商品型号" />
                  <ext:BoundField Width="100px" ColumnID="costPrice" SortField="costPrice" DataField="costPrice" DataFormatString="{0}"
                HeaderText="采购价" />
                  <ext:BoundField Width="100px" ColumnID="paperCount" SortField="paperCount" DataField="paperCount" DataFormatString="{0}"
                HeaderText="账面数量" />
                  <ext:BoundField Width="100px" ColumnID="realyCount" SortField="realyCount" DataField="realyCount" DataFormatString="{0}"
                HeaderText="实际数量" />
                   <ext:BoundField Width="100px" ColumnID="differenceCount" SortField="differenceCount" DataField="differenceCount" DataFormatString="{0}"
                HeaderText="差异数量" />
             

              <ext:WindowField Width="60px" WindowID="Window1" HeaderText="编辑" Text="编辑"   ToolTip="编辑" DataIFrameUrlFields="id"
                                DataIFrameUrlFormatString="warehouseGoodsRealyCount.aspx?ot=ed&amp;id={0}" Title="编辑"
                                IFrameUrl="~/alert.aspx" />
          <ext:TemplateField Width="100px" SortField="" HeaderText="删除">
                <ItemTemplate>
                     <div style="float:left; display:block;" id="divDeleted" runat="server">  <a title="删除" href="warehouseGoodsInventory.aspx?ot=del&amp;inventoryid=<%# Eval("id")%>&amp;id=<%= InventoryId %>" onclick="javascript:return confirm('你确定要删除吗？');">[删除]</a></div>
              </ItemTemplate>
            </ext:TemplateField>
        </Columns>
    </ext:Grid>

     <ext:button runat="server" Text="保 存" ValidateForms="extForm1"  ID="btnSubmitForm1"   Type="Submit"   OnClick="btnSubmitForm1_Click">
                       </ext:button>


    <ext:Window ID="Window1" Title="弹出窗体" Popup="false" EnableIFrame="true" IFrameUrl="about:blank"
        Target="Parent" runat="server"   CloseAction="HidePostBack" IsModal="true" Width="550px"
        EnableConfirmOnClose="true"  OnClose="Window1_Close" Height="200px">
    </ext:Window>
 
          
    </div>
    </form>
</body>
</html>

